import autofocus from './autofocus'

const install = function(Vue) {
  Vue.directive('autofocus', autofocus)
}

if (window.Vue) {
  window['autofocus'] = autofocus
  Vue.use(install); // eslint-disable-line
}

autofocus.install = install
export default autofocus
